package com.yellowpage.bigdata.data;

import javax.persistence.*;
import java.sql.Date;

/**
 * Created by lenovo on 2015/11/16.
 */
@Entity
@Table(name = "nsp_onofflog_ta_imei_day", schema = "", catalog = "omc")
public class NspOnofflogTaImeiDayEntity {
    private int id;
    private String logDate;
    private String version;
    private String opt;
    private String channelno;
    private Integer imeiDayCount;
    private Integer imeiAllCount;
    private Integer imeiNewCount;
    private String createUser;
    private Date createTime;
    private String note;

    @Id
    @Column(name = "ID")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "LOG_DATE")
    public String getLogDate() {
        return logDate;
    }

    public void setLogDate(String logDate) {
        this.logDate = logDate;
    }

    @Basic
    @Column(name = "VERSION")
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Basic
    @Column(name = "OPT")
    public String getOpt() {
        return opt;
    }

    public void setOpt(String opt) {
        this.opt = opt;
    }

    @Basic
    @Column(name = "CHANNELNO")
    public String getChannelno() {
        return channelno;
    }

    public void setChannelno(String channelno) {
        this.channelno = channelno;
    }

    @Basic
    @Column(name = "IMEI_DAY_COUNT")
    public Integer getImeiDayCount() {
        return imeiDayCount;
    }

    public void setImeiDayCount(Integer imeiDayCount) {
        this.imeiDayCount = imeiDayCount;
    }

    @Basic
    @Column(name = "IMEI_ALL_COUNT")
    public Integer getImeiAllCount() {
        return imeiAllCount;
    }

    public void setImeiAllCount(Integer imeiAllCount) {
        this.imeiAllCount = imeiAllCount;
    }

    @Basic
    @Column(name = "IMEI_NEW_COUNT")
    public Integer getImeiNewCount() {
        return imeiNewCount;
    }

    public void setImeiNewCount(Integer imeiNewCount) {
        this.imeiNewCount = imeiNewCount;
    }

    @Basic
    @Column(name = "CREATE_USER")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "NOTE")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NspOnofflogTaImeiDayEntity that = (NspOnofflogTaImeiDayEntity) o;

        if (id != that.id) return false;
        if (logDate != null ? !logDate.equals(that.logDate) : that.logDate != null) return false;
        if (version != null ? !version.equals(that.version) : that.version != null) return false;
        if (opt != null ? !opt.equals(that.opt) : that.opt != null) return false;
        if (channelno != null ? !channelno.equals(that.channelno) : that.channelno != null) return false;
        if (imeiDayCount != null ? !imeiDayCount.equals(that.imeiDayCount) : that.imeiDayCount != null) return false;
        if (imeiAllCount != null ? !imeiAllCount.equals(that.imeiAllCount) : that.imeiAllCount != null) return false;
        if (imeiNewCount != null ? !imeiNewCount.equals(that.imeiNewCount) : that.imeiNewCount != null) return false;
        if (createUser != null ? !createUser.equals(that.createUser) : that.createUser != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (note != null ? !note.equals(that.note) : that.note != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (logDate != null ? logDate.hashCode() : 0);
        result = 31 * result + (version != null ? version.hashCode() : 0);
        result = 31 * result + (opt != null ? opt.hashCode() : 0);
        result = 31 * result + (channelno != null ? channelno.hashCode() : 0);
        result = 31 * result + (imeiDayCount != null ? imeiDayCount.hashCode() : 0);
        result = 31 * result + (imeiAllCount != null ? imeiAllCount.hashCode() : 0);
        result = 31 * result + (imeiNewCount != null ? imeiNewCount.hashCode() : 0);
        result = 31 * result + (createUser != null ? createUser.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (note != null ? note.hashCode() : 0);
        return result;
    }
}
